package com.zk.spring5.config;

import org.springframework.context.annotation.ComponentScan;
import org.springframework.context.annotation.Configuration;
import org.springframework.context.annotation.EnableAspectJAutoProxy;

/**
 * @author ZK
 * @Description
 * @time 2021/5/5 21:11
 * @note
 */
@Configuration
@ComponentScan(basePackages = {"com.zk.spring5"})
// 这个表示开启AspectJ生成代理对象，相当于<aop:aspectj-autoproxy></aop:aspectj-autoproxy>
@EnableAspectJAutoProxy(proxyTargetClass = true)
public class AopConfig { }
